<?php


namespace Mslynn\Live\Block\admin\Filed;


use Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray;

class Video extends  AbstractFieldArray
{
    protected function _prepareToRender()
    {
        $this->addColumn('title', ['label' => __('视频标题'), 'class' => 'required-entry']);
        $this->addColumn('video', ['label' => __('视频地址'), 'class' => 'required-entry']);
        $this->addColumn('view', ['label' => __('观看人数'), 'class' => 'required-entry']);
        $this->addColumn('time', ['label' => __('观看时间'), 'class' => 'required-entry']);
        $this->_addAfter = false;
        $this->_addButtonLabel = __('Add');
    }
}